package com.jt.web.controller;

import com.jt.aop.LogAnyName;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 金帮嘉诚 @date 2021-08-25 星期三 17:55
 */
@RestController
@RequestMapping("/demo/")
public class DemoController {
    //自定义注解 用于切面
    @LogAnyName(operation = "这是operation")
    @GetMapping
    public String doSayHello(){
        System.out.println("do say hello");
        return "hello spring";
    }
}